package com.ruoyi.secondvitim.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.secondvitim.mapper.VitimNursingExpertsMapper;
import com.ruoyi.secondvitim.domain.VitimNursingExperts;
import com.ruoyi.secondvitim.service.IVitimNursingExpertsService;

/**
 * 护理专家团队介绍Service业务层处理
 * 
 * @author alonso_ecit
 * @date 2025-11-14
 */
@Service
public class VitimNursingExpertsServiceImpl implements IVitimNursingExpertsService 
{
    @Autowired
    private VitimNursingExpertsMapper vitimNursingExpertsMapper;

    /**
     * 查询护理专家团队介绍
     * 
     * @param id 护理专家团队介绍主键
     * @return 护理专家团队介绍
     */
    @Override
    public VitimNursingExperts selectVitimNursingExpertsById(Long id)
    {
        return vitimNursingExpertsMapper.selectVitimNursingExpertsById(id);
    }

    /**
     * 查询护理专家团队介绍列表
     * 
     * @param vitimNursingExperts 护理专家团队介绍
     * @return 护理专家团队介绍
     */
    @Override
    public List<VitimNursingExperts> selectVitimNursingExpertsList(VitimNursingExperts vitimNursingExperts)
    {
        return vitimNursingExpertsMapper.selectVitimNursingExpertsList(vitimNursingExperts);
    }

    /**
     * 新增护理专家团队介绍
     * 
     * @param vitimNursingExperts 护理专家团队介绍
     * @return 结果
     */
    @Override
    public int insertVitimNursingExperts(VitimNursingExperts vitimNursingExperts)
    {
        vitimNursingExperts.setCreateTime(DateUtils.getNowDate());
        return vitimNursingExpertsMapper.insertVitimNursingExperts(vitimNursingExperts);
    }

    /**
     * 修改护理专家团队介绍
     * 
     * @param vitimNursingExperts 护理专家团队介绍
     * @return 结果
     */
    @Override
    public int updateVitimNursingExperts(VitimNursingExperts vitimNursingExperts)
    {
        vitimNursingExperts.setUpdateTime(DateUtils.getNowDate());
        return vitimNursingExpertsMapper.updateVitimNursingExperts(vitimNursingExperts);
    }

    /**
     * 批量删除护理专家团队介绍
     * 
     * @param ids 需要删除的护理专家团队介绍主键
     * @return 结果
     */
    @Override
    public int deleteVitimNursingExpertsByIds(Long[] ids)
    {
        return vitimNursingExpertsMapper.deleteVitimNursingExpertsByIds(ids);
    }

    /**
     * 删除护理专家团队介绍信息
     * 
     * @param id 护理专家团队介绍主键
     * @return 结果
     */
    @Override
    public int deleteVitimNursingExpertsById(Long id)
    {
        return vitimNursingExpertsMapper.deleteVitimNursingExpertsById(id);
    }
}
